package com.base.vistter.iframe.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.base.vistter.iframe.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    @InterceptorIgnore(dataPermission="1")
    @Select("select * from sys_user where username = #{username} or phone = #{username} and is_delete = 0")
    SysUser getSysUserByUsername(@Param("username") String username);

}
